//
//  SEGNewMenuHouseViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/3.
//

#import <Foundation/Foundation.h>
#import "SEGAdvlistManager.h"

#if __has_include(<BMKLocationKit/BMKLocationManager.h>)
#import <BMKLocationKit/BMKLocationManager.h>
#else
#import "BMKLocationManager.h"
#endif

#import "SEGHouseRentalAndSaleRequestManager.h"

#import "SEGRegionListItemModel.h"
#import "SEGNewRentallistitemModel.h"
#import "CCLocationManager.h"
#import "SEGCarRentalListItemModel.h"
#import "SEGQuerydictlistModel.h"

#import "ReactiveObjC.h"

typedef NS_OPTIONS(NSUInteger, SEGRentalSelectType){
    SEGRentalSelectTypeHouse = 1,//选择房屋租售
    SEGRentalSelectTypeCar = 2//车位租售
};

typedef NS_OPTIONS(NSUInteger, SEGSelectHouseType){
    SEGSelectHouseTypeArea = 1,//选择区域
    SEGSelectHouseTypeHouseType = 2,//选择户型
    SEGSelectHouseTypeSaleType = 3, //选择租售
    SEGSelectHouseTypeCarSaleType = 4 //车位租售
};

NS_ASSUME_NONNULL_BEGIN

@interface SEGNewMenuHouseViewModel : NSObject
@property (nonatomic, strong) NSMutableArray *houseListArray;//房屋list
@property (nonatomic, assign) SEGAdvlistType adType;

@property (nonatomic, strong) SEGAdvertisementViewModel *adData;//广告数据

@property (nonatomic, strong) BMKLocationManager *locationManager;

@property (nonatomic, assign) NSUInteger page;
@property (nonatomic, strong) SEGHouseRentalAndSaleRequestManager *requestManager;


@property (nonatomic, strong) NSString *cityCode;
@property (nonatomic, strong) NSString *cityName;

@property (nonatomic, strong) NSMutableArray <SEGQuerydictlistDictlistModel *>* houseTypeArr;
@property (nonatomic, strong) NSMutableArray <SEGQuerydictlistDictlistModel *>* saleTypeArr;
@property (nonatomic, strong) NSMutableArray <SEGQuerydictlistDictlistModel *>* carRentalTypeArr;//车位租售类型数据


@property (nonatomic, strong) NSMutableArray <SEGRegionListItemModel *> *regionArray;//省市区region

@property (nonatomic, assign) SEGRentalSelectType rentalType;//租售啥



- (RACSignal *)sendAdRequest;

- (RACSignal *)sendLocationRequest;

- (RACSignal *)seg_bdLoc;

- (RACSignal *)sendItemListRequest;

- (RACSignal *)sendGetHouseAndSaleTypeRequest;
@end

NS_ASSUME_NONNULL_END
